/**
 * 
 */
package com.mvc.service.xt.impl;

import java.util.List;
import java.util.Map;

import org.huangqj.consant.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mvc.dao.BaseDaoI;
import com.mvc.model.xt.Department;
import com.mvc.service.xt.DepartmentService;

/**
 * 部门接口实现类
 * @author qingjie
 *
 */
@Service
public class DepartServiceImpl implements DepartmentService {
	
	@Autowired
	private BaseDaoI<Department> dBaseDaoI;

	@Override
	public List<Department> findDepartments(Department department) {
		Map<String, Object> params = StringUtils.beanToMap(department);
		return dBaseDaoI.find(StringUtils.getHql("Department", params, ""), params);
	}
	
	

}
